/**
 * Ingenius-Group S.A.S
 *
 * Project: SAU
 * File: EditSelfEvaluationEvent.java
 * Date: 08/02/2011
 */

package com.ingenius.sau.client.event;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.ingenius.sau.client.event.EditSelfEvaluationEvent.EditSelfEvaluationEventHandler;

/**
 * Class <strong>EditSelfEvaluationEvent</strong>
 * 
 * @author Jesus David
 * @version 0.1
 */
public class EditSelfEvaluationEvent extends
		GwtEvent<EditSelfEvaluationEventHandler> {

	public interface EditSelfEvaluationEventHandler extends EventHandler {

		void onEditSelfEvaluation(EditSelfEvaluationEvent event);
	}

	public static Type<EditSelfEvaluationEventHandler> TYPE = new Type<EditSelfEvaluationEventHandler>();

	private final String evaluationId;

	public EditSelfEvaluationEvent(String evaluationId) {
		this.evaluationId = evaluationId;
	}

	public String getSelfEvaluationId() {
		return evaluationId;
	}

	@Override
	public Type<EditSelfEvaluationEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(EditSelfEvaluationEventHandler handler) {
		handler.onEditSelfEvaluation(this);
	}

}
